@*+:cnd:noEmit*@
@attribute [Route(PageUrls.Settings + "/{Section?}")]
@attribute [Route("{culture?}" + PageUrls.Settings + "/{Section?}")]
@attribute [Authorize]
@inherits AppPageBase

<AppPageData Title="@Localizer[nameof(AppStrings.Settings)]"
             PageTitle="@Localizer[nameof(AppStrings.SettingsPageTitle)]" />

<section>
    <BitStack Class="stack">
        <Accordion @bind-Value="@openedAccordion"
                   Name="@PageUrls.SettingsSections.Profile"
                   Title="@Localizer[nameof(AppStrings.ProfileTitle)]"
                   Subtitle="@Localizer[nameof(AppStrings.ProfileSubtitle)]">
            <ProfileSection Loading="isLoading" />
        </Accordion>

        <Accordion @bind-Value="@openedAccordion"
                   Name="@PageUrls.SettingsSections.Account"
                   Title="@Localizer[nameof(AppStrings.AccountTitle)]"
                   Subtitle="@Localizer[nameof(AppStrings.AccountSubtitle)]">
            <AccountSection />
        </Accordion>

        <Accordion @bind-Value="@openedAccordion"
                   Name="@PageUrls.SettingsSections.Tfa"
                   Title="@Localizer[nameof(AppStrings.TfaTitle)]"
                   Subtitle="@Localizer[nameof(AppStrings.TfaSubtitle)]">
            <TwoFactorSection />
        </Accordion>

        <Accordion @bind-Value="@openedAccordion"
                   Name="@PageUrls.SettingsSections.Sessions"
                   Title="@Localizer[nameof(AppStrings.SessionsTitle)]"
                   Subtitle="@Localizer[nameof(AppStrings.SessionsSubtitle)]">
            <SessionsSection />
        </Accordion>
        @*#if (ads == true)*@
        <Accordion @bind-Value="@openedAccordion"
                   Name="@PageUrls.SettingsSections.UpgradeAccount"
                   Title="@Localizer[nameof(AppStrings.UpgradeTitle)]"
                   Subtitle="@Localizer[nameof(AppStrings.UpgradeSubtitle)]">
            <UpgradeAccountSection />
        </Accordion>
        @*#endif*@
    </BitStack>
</section>